﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HistoryInfor.aspx.cs" Inherits="HNQXYJ.DataCenterJS.HistoryInfor1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../CSS/SimpleContent.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/public.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="610">
                    <tr>
                        <td class="rtbg">
                            <span> 终端信息 &nbsp;》
                              </span>
                        </td>
                    </tr>
                    <tr>
                         <td  class="rbg" valign="top" align="center"  style="padding-top:20px">
                             <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                               
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td style=" text-align:left;">
                                        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
                                            <tr>
                                                <td  align="center" class="gn">
                                                <span style=" float:left;"><a href="TerminalInsertData.aspx"><img id="add" src="../img/xz.gif" /></a></span>   终端信息一览表
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style=" text-align:left;">
                                        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                            DeleteMethod="Delete" InsertMethod="Insert" 
                                            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                                            TypeName="HNQXYJ.DataCenterJS.HistoryInforTableAdapters.HistoryInforTableAdapter" 
                                            UpdateMethod="Update">
                                            <DeleteParameters>
                                                <asp:Parameter Name="Original_Id" Type="Int32" />
                                            </DeleteParameters>
                                            <InsertParameters>
                                                <asp:Parameter Name="UserName" Type="String" />
                                                <asp:Parameter Name="Information" Type="String" />
                                                <asp:Parameter Name="IsSuccess" Type="String" />
                                                <asp:Parameter Name="AddDate" Type="DateTime" />
                                            </InsertParameters>
                                            <UpdateParameters>
                                                <asp:Parameter Name="UserName" Type="String" />
                                                <asp:Parameter Name="Information" Type="String" />
                                                <asp:Parameter Name="IsSuccess" Type="String" />
                                                <asp:Parameter Name="AddDate" Type="DateTime" />
                                                <asp:Parameter Name="Original_Id" Type="Int32" />
                                            </UpdateParameters>
                                        </asp:ObjectDataSource>
                                        <asp:ListView ID="ListView1" runat="server" DataKeyNames="Id" 
                                            DataSourceID="ObjectDataSource1" EnableModelValidation="True">
                                            <EmptyDataTemplate>
                                                <table >
                                                    <tr>
                                                        <td>
                                                            未返回数据。</td>
                                                    </tr>
                                                </table>
                                            </EmptyDataTemplate>
                                            
                                            <ItemTemplate>
                                                <tr >
                                                <%--    <td>
                                                        <%# Eval("Id") %>
                                                    </td>--%>
                                                    <td>
                                                        <%# Eval("UserName") %>
                                                    </td>                                                  
                                                    <td>  
                                                       <%# Eval("Information") %>
                                                    </td>
                                                    <td>
                                                       <%# Eval("IsSuccess") %>
                                                    </td>
                                                    <td>
                                                        <%# Eval("AddDate") %>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <LayoutTemplate>
                                                <table   width="98%" border="0" cellspacing="0" cellpadding="0" class="dataList2" align="center">
                                                   
                                                   <%-- <tr >
                                                        <td >--%>
                                                           <%-- <table >--%>
                                                             <thead>
                                                                <tr>
                                                           <%--         <th>
                                                                        Id</th>--%>
                                                                    <th >
                                                                        用户姓名</th>                                                                  
                                                                    <th >
                                                                        发送信息</th>
                                                                    <th >
                                                                        是否成功</th>
                                                                    <th>
                                                                        发送时间</th>
                                                                </tr>
                                                                </thead>
                                                                <tr ID="itemPlaceholder" runat="server">
                                                                </tr>
                                                          <%--  </table>--%>
                                                        <%--</td>
                                                    </tr>--%>
                                                    <tfoot>
                                                    <tr >
                                                        <td  colspan="4"  class="ispage">
                                                            <asp:DataPager ID="DataPager1" runat="server"  >
                                                                <Fields>
                                                                    <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" 
                                                                        ShowLastPageButton="False" ShowNextPageButton="False"  ButtonCssClass="dd" />

                                                                        <asp:NumericPagerField />
                                                                         <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="False" 
                                                                        ShowLastPageButton="True" ShowPreviousPageButton="False" />
                                                                </Fields>
                                                            </asp:DataPager>
                                                        </td>
                                                    </tr>
                                                    </tfoot>
                                                </table>
                                            </LayoutTemplate>       
                                        </asp:ListView>
                                        
                                    </td>
                                </tr>
                            </table>                     
                         </td>
                     </tr>
              </table>
    </form>
</body>
</html>
